[
<?php if($search ):?>
<?php $i=0; foreach($search as $user): ?>
<?php if($i >= 1):?>,<?php endif;?>
{ "id": "", "label": "<?php if($i >= 1):?><hr><?php endif;?><?=$user['uselogin']?><br><?=$user['RealName']?><br><?php if ($user['StreetName']): ?>вул. <?=$user['StreetName']?><?php endif; ?><?php if ($user['Buildingn']): ?> <?=$user['Buildingn']?><?php endif; ?><?php if ($user['Entrance']): ?>, під. <?=$user['Entrance']?><?php endif; ?><?php if ($user['Floor']): ?>, пов. <?=$user['Floor']?><?php endif; ?><?php if ($user['Apartn']): ?>, кв. <?=$user['Apartn']?><?php endif; ?><br><?=$user['IP']?>", "value": "<?=$user['login']?>" }
<?php ++$i; endforeach; ?>
<?php endif;?>
]